﻿using System;
using System.Data;
using System.Configuration;
using System.Linq;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.HtmlControls;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Xml.Linq;

/// <summary>
/// Summary description for ConfigData
/// </summary>
public class ConfigData
{
	public ConfigData()
	{
		//
		// TODO: Add constructor logic here
		//
	}

    public bool Update(ConfigEntities item)
    {
        string[] paras = { "@webname", "@keyword", "@banner", "@logo", "@footer" };
        string[] values = { item._webname.ToString(), item._keyword.ToString(), item._banner.ToString(), item._logo.ToString(), item._footer.ToString() };
        if (Database.getExecProcedure("sp_UpdateConfig", paras, values) > 0)
        {
            return true;
        }
        else
        {
            return false;
        }
    }
}
